package xyz.scoder;

public class Door {
    private int state;

    public void open() {
        this.state = 1;
        System.out.println("开门");
    }

    public void close() {
        this.state = 0;
        System.out.println("关门");
    }

    public int getState() {
        return this.state;
    }
}
